var util = require('../../utils/util.js');
var api = require('../../config/api.js');
var app = getApp()
Page({
  data: {
    username:''
  },
  getInputValue(e){
    console.log(e.detail)// {value: "ff", cursor: 2}  
    this.setData({
      username: e.detail.value
    })
  },

  searchGotoUrl(){
    let pages = getCurrentPages();
    let prevPage = pages[pages.length - 2];
    console.log(this.data.username)
    var str =this.data.username;
    prevPage.setData({
      mobileNumber: str,
      pages: '1',
      hotGoods:[]
    })
    prevPage.getlistUrl()
    wx.navigateBack({
      delta: 1,
    })
  },
  onLoad: function() {

  },
})